package com.ruoyi.generator.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 数据列自定义配置__是否展示列、排序等对象 sys_from_table_column_config
 *
 * @author ZGL
 * @date 2025-04-07
 */
public class FromTableColumnConfig extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 表单配置标识 */
    @Excel(name = "表单配置标识")
    private String formBuildKey;

    /** 归属表编号 */
    @Excel(name = "归属表编号")
    private String tableId;

    /** 列名称 */
    @Excel(name = "列名称")
    private String columnName;

    /** 是否列表字段（1是） */
    @Excel(name = "是否列表字段", readConverterExp = "1=是")
    private String isList;

    /** 是否为排序字段（1是） */
    @Excel(name = "是否为排序字段", readConverterExp = "1=是")
    private String isAllowSort;

    /** 固定展示 */
    @Excel(name = "固定展示")
    private String fixed;

    /** 排序 */
    @Excel(name = "排序")
    private Long sort;

    /** 默认与主表关联值 */
    private String defFk;

    /** ID */
    private Long id;

    /** 删除标记 */
    private String delFlag;

    /** 记录标识__新增数据时，生成的唯一值 */
    private String defPk;

    public String getFormBuildKey() {
        return formBuildKey;
    }

    public void setFormBuildKey(String formBuildKey) {
        this.formBuildKey = formBuildKey;
    }

    public void setTableId(String tableId)
    {
        this.tableId = tableId;
    }

    public String getTableId()
    {
        return tableId;
    }
    public void setColumnName(String columnName)
    {
        this.columnName = columnName;
    }

    public String getColumnName()
    {
        return columnName;
    }
    public void setIsList(String isList)
    {
        this.isList = isList;
    }

    public String getIsList()
    {
        return isList;
    }
    public void setIsAllowSort(String isAllowSort)
    {
        this.isAllowSort = isAllowSort;
    }

    public String getIsAllowSort()
    {
        return isAllowSort;
    }
    public void setFixed(String fixed)
    {
        this.fixed = fixed;
    }

    public String getFixed()
    {
        return fixed;
    }
    public void setSort(Long sort)
    {
        this.sort = sort;
    }

    public Long getSort()
    {
        return sort;
    }
    public void setDefFk(String defFk)
    {
        this.defFk = defFk;
    }

    public String getDefFk()
    {
        return defFk;
    }
    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setDelFlag(String delFlag)
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag()
    {
        return delFlag;
    }
    public void setDefPk(String defPk)
    {
        this.defPk = defPk;
    }

    public String getDefPk()
    {
        return defPk;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("tableId", getTableId())
            .append("columnName", getColumnName())
            .append("isList", getIsList())
            .append("isAllowSort", getIsAllowSort())
            .append("fixed", getFixed())
            .append("sort", getSort())
            .append("updateBy", getUpdateBy())
            .append("createBy", getCreateBy())
            .append("defFk", getDefFk())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .append("createTime", getCreateTime())
            .append("id", getId())
            .append("delFlag", getDelFlag())
            .append("defPk", getDefPk())
            .toString();
    }
}
